import React from 'react'
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import Home from '../pages/Home';
import Detail from '../pages/Detail';

const Tab = createBottomTabNavigator();


export default class BottomTab extends React.Component {
    render() {
        return (
            <Tab.Navigator>
                <Tab.Screen name="Home" component={Home} options={ {tabBarLabel: '首页'} }/>
                <Tab.Screen name="Detail" component={Detail} options={ {tabBarLabel: 'kks'} }/>
            </Tab.Navigator>
        )
    }
}